﻿using System.Windows.Controls;
using System.Windows;
using ESRI.ArcGIS.Client;
using Visifire.Charts;

namespace GisWeb
{
    public partial class InfoWindow : UserControl
    {
        private ElementLayer _eLayer;

        public ElementLayer ELayer
        {
            get { return _eLayer; }
            set { _eLayer = value; }
        }
        public InfoWindow(ElementLayer eLayer,Chart chart,string infomation)
        {
            InitializeComponent();
            ELayer = eLayer;
            chartFold.Children.Add(chart);
            title.Text = infomation;
            
        }

        private void btn_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            ELayer.Children.Remove(this);
        }

     
    }
}
